package com.qingke.animal1;

public class Mouse extends Animal{
	
	public Mouse(String name,int age,int eatRiceNum){
		super(name, age,eatRiceNum);
	}
	
	public void eatRice(int eat){
		this.eatRiceNum+=eat;
		System.out.println("I eat "+eatRiceNum+" rice!");
	}
	public void run(){
		System.out.println("mouse is running");
	}
	public void run(String name){
		System.out.println(name+"mouse is running");
	}

	@Override
	public void eat() {
		System.out.println(this.name+"is eating rice!");
	}
}
